package org.ala.tiktools.client_server.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 *	@author ala
 *	@date 2025年4月22日
 */
public class OrderItemDO implements Serializable {
	private static final long serialVersionUID = 1L;

	protected long id;
	protected long orderId;
	protected String name;
	protected int count;
	protected BigDecimal price;
	
	public static OrderItemDO build() { return new OrderItemDO(); }
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public OrderItemDO id(long id) {
		setId(id);
		return this;
	}
	public long getOrderId() {
		return orderId;
	}
	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}
	public OrderItemDO orderId(long orderId) {
		setOrderId(orderId);
		return this;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public OrderItemDO name(String name) {
		setName(name);
		return this;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public OrderItemDO price(BigDecimal price) {
		setPrice(price);
		return this;
	}
	public OrderItemDO price(double price) {
		return price(BigDecimal.valueOf(price));
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public OrderItemDO count(int count) {
		setCount(count);
		return this;
	}
	
}
